package com.sfang.common.base.enums;

/**
 * Created by psalmody on 2016/8/8.
 */
public enum ResultStatus {
    Success {
        @Override
        public int getStatus() {
            return 200;
        }

        public String getCode() {
            return "Success";
        }
    }, Fail {
        @Override
        public int getStatus() {
            return 400;
        }

        public String getCode() {
            return "Fail";
        }


    },
    FailValidated {
        @Override
        public int getStatus() {
            return 413;
        }

        public String getCode() {
            return "FailValidated";
        }
    }
    ,
    Forbidden {
        @Override
        public int getStatus() {
            return 403;
        }

        public String getCode() {
            return "Forbidden";
        }
    } ,
    BizError {
        @Override
        public int getStatus() {
            return 50000;
        }

        public String getCode() {
            return "Forbidden";
        }
    };

    public abstract int getStatus();
    public abstract String getCode();
}
